package com.hackintosh.oa;

import java.util.Arrays;

/**
 * @description：抽象公司
 * @author：twislyn
 * @date：Created in 2021/05/15
 * @modified By：
 * @version: 1.0
 */
public abstract class Company {
    protected String name;

    public Company(String name) {
        this.name = name;
    }

    public abstract void add(Company company);

    public abstract void display(int depth);

    public abstract void lineOfDuty();

    public String creatString(char ch, int length) {
        char[] chars = new char[length];
        Arrays.fill(chars, ch);
        String result = new String(chars);
        return result;
    }
}
